<template>
  <div>
    <!-- 头部组件 -->
    <Nav>
      <h2>用户登录</h2>
      <div @click="qie">切换主题</div>
    </Nav>
    <!-- 输入框组件 -->
    <Inp></Inp>
  </div>
</template>
<script>
import Nav from "../components/nav";
import Inp from "../components/inp";
export default {
  components: {
    Nav,
    Inp,
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {
    qie() {
      this.$store.commit("qie");
    },
  },
  computed: {},
  watch: {},
};
</script>
<style scoped>
h2 {
  color: #fff;
}
</style>